package com.zx._10_设计模式.行为型模式.责任链模式.demo3;

public class Main {

    public static void main(String[] args) {
        Step1ExecuteProcessor p1 = new Step1ExecuteProcessor();
        Step2ExecuteProcessor p2 = new Step2ExecuteProcessor();

        ExecuteCenter center = new ExecuteCenter();
        center.processorSet.add(p1);
        center.processorSet.add(p2);

        center.execute(p1.getSupportType(), "1111");

        center.execute(p2.getSupportType(), "2222");

    }

}
